package com.meida.module.bus.client.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * VIEW
 *
 * @author flyme
 * @date 2020-12-14
 */
@Data
@Accessors(chain = true)
@TableName("bus_rec_delivery_bk_view")
@TableAlias("brdbv")
@ApiModel(value="BusRecDeliveryBkView对象", description="VIEW")
public class BusRecDeliveryBkView {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主key")
    @TableId
    private Long recDecId;

    @ApiModelProperty(value = "状态")
    private String syncStatus;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "项目代码")
    private String projectCode;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "专业代码")
    private String majorCode;

    @ApiModelProperty(value = "专业名称")
    private String majorName;

    @ApiModelProperty(value = "工程包代码")
    private String packageNo;

    @ApiModelProperty(value = "工程包名称")
    private String packageName;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "申请人")
    private String userName;

    @ApiModelProperty(value = "申请时间")
    private Date appTime;

    @ApiModelProperty(value = "本次采购数量")
    private BigDecimal purchaseNum;

    @ApiModelProperty(value = "在途数量")
    private BigDecimal onLineNum;

    @ApiModelProperty(value = "到货数量")
    private BigDecimal receiveNum;

    @ApiModelProperty(value = "需求计划日期")
    private Date receivedDate;

    @ApiModelProperty(value = "供应商ID")
    private Long vendorId;

    @ApiModelProperty(value = "发料ID号_SAP")
    private Long zid;

    @ApiModelProperty(value = "发料行项目_SAP")
    private Boolean zitem;

    @ApiModelProperty(value = "A07：发料，A03：取消发料_SAP")
    private String action;

    @ApiModelProperty(value = "凭证中的过帐日期_SAP")
    private Date budat;

    @ApiModelProperty(value = "凭证中的凭证日期_SAP")
    private Date bldat;

    @ApiModelProperty(value = "证抬头文本_SAP")
    private String bktxt;

    @ApiModelProperty(value = "班组编码_收货方_SAP")
    private String supplierCode;

    @ApiModelProperty(value = "班组名称")
    private String supplierName;

    @ApiModelProperty(value = "本次领料量_以录入项单位表示的数量_SAP")
    private BigDecimal recNumThis;

    @ApiModelProperty(value = "预留/相关需求的编号_SAP")
    private String reserveNo;

    @ApiModelProperty(value = "预留 / 相关需求的项目编号_SAP")
    private String reserveRow;

    @ApiModelProperty(value = "库存地点_SAP")
    private String lgort;

    @ApiModelProperty(value = "扩展字段1_SAP")
    private String ext01;

    @ApiModelProperty(value = "扩展字段2_SAP")
    private String ext02;

    @ApiModelProperty(value = "扩展字段3_SAP")
    private String ext03;

    @ApiModelProperty(value = "扩展字段4_SAP")
    private String ext04;

    @ApiModelProperty(value = "扩展字段5_SAP")
    private String ext05;

    @ApiModelProperty(value = "消息类型_SAP回调")
    private String msgtyFromSap;

    @ApiModelProperty(value = "消息文本_SAP回调")
    private String msgtxFromSap;

    @ApiModelProperty(value = "物料凭证编号_SAP回调")
    private String mblnrFromSap;

    @ApiModelProperty(value = "物料凭证中的项目_SAP回调")
    private Boolean mblppoFromSap;

    @ApiModelProperty(value = "物料凭证的年份_SAP回调")
    private Boolean mjahrFromSap;

    private Long purchaseDetailsId;

    private String materialWbsCode;

    private String materialCode;

    @ApiModelProperty(value = "累计冲销数量")
    private BigDecimal recNumOut;

    @ApiModelProperty(value = "可冲销数量")
    private BigDecimal charOffCountCan;

    @ApiModelProperty(value = "本次冲销数量")
    @TableField(exist = false)
    private BigDecimal charOffCount;

}
